package data;
import java.util.List;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "task")
public class Task implements java.io.Serializable{
	@XmlAttribute
	public String id;

	@XmlAttribute
	public String name;

	@XmlAttribute
	public String date;
	
	@XmlAttribute
	public String status;

	// If you dont specify any annotation, it will be serialized as XmlElement.
	public String description;
	
	public List<User> attendant;
	
	


	public void put(String id, String name, String date, String status,
			String description, List<User> attendant){
		this.id = id;
		this.name = name;
		this.date = date;
		this.status = status;
		this.description = description;
		this.attendant = attendant;
	}
	
	public List<User> listOfAttendants(){
		return this.attendant;
	}
	
}
